package com.heima.user.feign;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient (value = "leadnews-wemedia")
public interface WmUserFeign {
    //自媒体远程调用
    @PostMapping("/api/v1/user/save")////保存自媒体信息
    ResponseResult save(@RequestBody WmUser wmUser);
    @GetMapping("/api/v1/user/findByName/{name}")//根据名称查询自媒体信息
    public WmUser findByname(@PathVariable("name") String name);
}
